package com.server.questionbank.snframe.mapper.QuestionBank;

import com.server.questionbank.snframe.domain.QuestionBank.Knowledge;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface KnowledgeMapper {
    // 根据courseId查询知识点id、和knowledgeContent
    @Select("SELECT record_id, knowledge_content, course_id  FROM T_knowledge")
    List<Knowledge> findByCourseId();

    @Select("SELECT id, title, course_id as courseId FROM knowledge_point")
    List<Knowledge> findAllWithCourse();
}
